<?php
/*首页 start*/
Route::any('/','admin\LoginController@login');

Route::any('/logout','admin\LoginController@logout');

Route::get('/index',function(){
        return view('index');
});
Route::any('/rbac',function(){
	return view('errors.rbac');
});



Route::group(['middleware' => 'rbac'], function () {

    /*首页 end*/
    /*管理员_***** start*/
    Route::group(['prefix' => '/manager/'], function () {
        Route::get('user', 'admin\ManagerController@user');
        Route::get('out', 'admin\ManagerController@out');
        Route::get('vacate', 'admin\ManagerController@vacate');
        Route::get('details', 'admin\ManagerController@details');
        Route::get('plan', 'admin\ManagerController@plan');
        Route::get('usename', 'admin\ManagerController@usename');
        Route::get('role', 'admin\ManagerController@role');
        Route::get('power', 'admin\ManagerController@power');
        Route::any('company', 'admin\ManagerController@company');
        Route::any('comedit', 'admin\ManagerController@comedit');
        Route::any('page', 'admin\ManagerController@page');
        Route::any('login', 'admin\ManagerController@login');
        Route::get('stu_money', 'admin\ManagerController@stu_money');
        Route::get('comimg', 'admin\ManagerController@comimg');
        Route::get('delPower', 'admin\ManagerController@delPower');
        Route::any('upPower', 'admin\ManagerController@upPower');
        Route::any('addPower', 'admin\ManagerController@addPower');
        Route::any('addRole', 'admin\ManagerController@addRole');
        Route::any('delRole', 'admin\ManagerController@delRole');
        Route::any('upRole', 'admin\ManagerController@upRole');
        Route::any('delUse', 'admin\ManagerController@delUse');
        Route::any('upUse', 'admin\ManagerController@upUse');
        Route::any('addUse', 'admin\ManagerController@addUse');

    });
    /*管理员 end*/


    /*教练 ******/
    Route::get('/coach/user', 'admin\CoachController@user');
    Route::get('/coach/assess', 'admin\CoachController@assess');
    Route::get('/coach/student', 'admin\CoachController@student');
    Route::get('/coach/details', 'admin\CoachController@details');
    Route::get('/coach/transfer', 'admin\CoachController@transfer');
    Route::get('/coach/maintain', 'admin\CoachController@maintain');
    Route::get('/coach/scheduling', 'admin\CoachController@scheduling');
    Route::get('/coach/refuel', 'admin\CoachController@refuel');
    Route::any('/coach/xue', 'admin\CoachController@xue');
    /*教练 end*/


    /*行政部 *****start*/
    Route::get('/execu/user', 'admin\ExecuController@user');
    Route::get('/execu/information', 'admin\ExecuController@information');
    Route::get('/execu/vehicleSettings', 'admin\ExecuController@vehicleSettings');
    Route::get('/execu/carRegister', 'admin\ExecuController@carRegister');
    Route::get('/execu/newVehicle', 'admin\ExecuController@newVehicle');
    Route::get('/execu/attendance', 'admin\ExecuController@attendance');
    Route::get('/execu/service', 'admin\ExecuController@service');
    Route::get('/execu/serviceRecord', 'admin\ExecuController@serviceRecord');
    Route::get('/execu/renewal', 'admin\ExecuController@renewal');
    Route::get('/execu/gasolineAddition', 'admin\ExecuController@gasolineAddition');
    Route::get('/execu/busGovern', 'admin\ExecuController@busGovern');
    Route::any('/execu/newvehicleadd', 'admin\ExecuController@newvehicleadd');
    Route::any('/execu/renexcelOut', 'admin\ExecuController@renexcelOut');
    Route::any('/execu/excel', 'admin\ExecuController@excel');
    Route::get('/execu/regist', 'admin\ExecuController@regist');
    /*行政部 *****end*/
    /*行政部 ***** start*/
    Route::get('/execu/apply', 'admin\ExecuController@apply');
    Route::get('/execu/online', 'admin\ExecuController@online');
    Route::any('/execu/entrance', 'admin\ExecuController@entrance');
    Route::any('/execu/excelOut', 'admin\ExecuController@excelOut');
    Route::any('/execu/updateStuInfo', 'admin\ExecuController@updateStuInfo');
    Route::any('/execu/updateInfoPro', 'admin\ExecuController@updateInfoPro');
    Route::get('/execu/checkNum', 'admin\ExecuController@checkNum');
    Route::get('/execu/checkCard', 'admin\ExecuController@checkCard');
    Route::any('/execu/complaints', 'admin\ExecuController@complaints');
    Route::get('/execu/coachinfo', 'admin\ExecuController@coachinfo');
    Route::get('/execu/grouping', 'admin\ExecuController@grouping');
    Route::get('/execu/arranging', 'admin\ExecuController@arranging');
    Route::get('/execu/s_area', 'admin\ExecuController@s_area');
    /*行政部 end*/


    /*人事部 start*/
    Route::any('/human/information', 'admin\HumanController@information');
    Route::get('/human/add', 'admin\HumanController@add');
    Route::any('/human/maintain', 'admin\HumanController@maintain');
    Route::any('/human/maintainedit', 'admin\HumanController@maintainedit');
    Route::get('/human/quit', 'admin\HumanController@quit');
    Route::get('/human/attendance', 'admin\HumanController@attendance');
    Route::any('/human/leave', 'admin\HumanController@leave');
    Route::get('/human/hours', 'admin\HumanController@hours');
    Route::get('/human/social', 'admin\HumanController@social');
    Route::get('/human/salarysetup', 'admin\HumanController@salarysetup');
    /*人事部 end*/


    /*财务部 start*/
    Route::get('/finance/user', 'admin\FinanceController@user');
    Route::get('/finance/information', 'admin\FinanceController@information');
    Route::get('/finance/chargedetail', 'admin\FinanceController@chargedetail');
    Route::post('/finance/search', 'admin\FinanceController@search');
    Route::get('/finance/arrearslist', 'admin\FinanceController@arrearslist');
    Route::post('/finance/arrearssearch', 'admin\FinanceController@arrearssearch');
    Route::get('/finance/salary', 'admin\FinanceController@salary');
    Route::get('/finance/fa_salary', 'admin\FinanceController@fa_salary');

    Route::get('/finance/expenditure', 'admin\FinanceController@expenditure');
    Route::get('/finance/income', 'admin\FinanceController@income');
    /*财务部 end*/


    /*学员端 start*/
    Route::get('/student/user', 'admin\StudentController@user');
    Route::get('/student/information', 'admin\StudentController@information');
    Route::get('/student/tuition', 'admin\StudentController@tuition');
    /*学员端 end*/
});



